package com.erp.products.addproduct.service.impl;

import com.erp.products.addproduct.domain.ErpProductsPrices;
import com.erp.products.addproduct.mapper.AddproductMapper;
import com.erp.products.addproduct.service.AddproductService;
import com.erp.products.productlist.domain.ErpProducts;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AddproductServiceImpl implements AddproductService {
    @Autowired
    private AddproductMapper addproductMapper;

    @Override
    public void basic() {
        addproductMapper.basic();
    }

    @Override
    public void addPrice(ErpProductsPrices erpProductsPrices) {
        addproductMapper.addPrice(erpProductsPrices);
    }

    @Override
    public List<String> listUnit() {
        return addproductMapper.listUnit();
    }

    @Override
    public List<String> listProductType() {
        return addproductMapper.listProductType();
    }

    @Override
    public List<String> listCategory() {
        return addproductMapper.listCategory();
    }

    @Override
    public int addProducts(ErpProducts erpProducts) {
        return addproductMapper.addProducts(erpProducts);
    }

    @Override
    public boolean updateProductImage(Long productId, String productImage) {
        return addproductMapper.updateProductImage(productId, productImage);
    }


}
